package xyz.erupt.flow.data.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import xyz.erupt.flow.data.interfaces.Create;
import xyz.erupt.flow.data.interfaces.Delete;
import xyz.erupt.flow.data.interfaces.Update;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @description: 工作流分组
 * @className: OaWorkFlowGroup
 * @author: PP
 * @date: 2024/10/19 9:34
 * @Version: 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DTO_OaWorkFlowGroup {
    /**
     * 分组ID
     */
    @NotNull(groups = {Update.class, Delete.class})
    private Long groupId;
    /**
     * 分组名称
     */
    @NotBlank(groups = {Update.class, Create.class})
    private String groupName;

}
